package aiku.numericalcontroloa.Mapper.OrderManagement;

import aiku.numericalcontroloa.Model.Entity.OrderManagement.OrderGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 黄广庭
 * @Date 2024/5/7 11:32
 */
@Repository
public interface OrderGoodsMapper extends BaseMapper<OrderGoods> {

    /**
     * 批量添加
     * @param orderGoodsList
     * @return
     */
    int insertBatch(@Param(value = "list")List<OrderGoods> orderGoodsList);

    /**
     * 根据订单id彻底删除
     * @param orderId
     * @return
     */
    int deleteBatchByOrderId(@Param(value = "orderId") String orderId);
}
